pp108 : Customizing Element Bar and Toolbar Buttons

Customizing Element Bar and Toolbar Buttons

This topic describes the procedure to customize the buttons in element bars and toolbars.

You can edit the properties of a button in the element bar or toolbar to customize it as required.

  1. Open the XForm in the XForms Designer.
  2. Double-click an element bar or toolbar button, or right-click it and select Properties. Depending upon the button selected, the Elementbar Button_or_Toolbar Button window appears.
  3. Make appropriate modifications:
    • Type a unique identifier in the ID field. A message appears confirming that all references are updated to the ID in the script. Click Yes to update the script and proceed.

      Note:

      • By default, the application assigns a unique identifier to the Find button and displays it in the ID field. You can edit this identifier, if required.
      • You cannot edit the ID of the Save button () in a toolbar.
    • Type a value in the Tab Index field to specify the order at which the button should be highlighted using the Tab key.
    • Type the text to be displayed as a tooltip in the Tooltip field.
    • Type the URL of the image to be displayed in the button in the Image field.
    • Select Task Part to create a task part for the button. Selecting the check box, displays the Task Part Details pane, where you can specify relevant details.
  4. Click Events to expand the pane and select the Web service operation to be executed for each event. Alternatively, you can click for each event, and specify the appropriate Web service operation in the Script Editor. The options available in the Events pane vary according to the button selected.
    • Select an option from the Before Insert drop-down list to specify the Web service operation to be executed before inserting a record.
    • Select an option from the After Insert drop-down list to specify the Web service operation to be executed after inserting a record.
    • Select an option from the Before Find drop-down list to specify the Web service operation to be executed before the Find dialog box is opened.
    • Select an option from the After Find drop-down list to specify the Web service operation to be executed after the search is complete.
    • Select an option from the Before Save drop-down list to specify the Web service operation to be executed before the modified data in the XForm is saved.
    • Select an option from the After Save drop-down list to specify the Web service operation to be executed after the modified data in the XForm is saved.

The properties of the selected button in the element bar or toolbar are updated.

Note:
To delete a button, right-click it, and select .


Related tasks

Adding Element Bars to Controls
Adding Toolbar to an XForm